//package com.example.testpulsar.mq.configforpulsar;
//
//import org.springframework.context.annotation.Condition;
//import org.springframework.context.annotation.ConditionContext;
//import org.springframework.core.type.AnnotatedTypeMetadata;
//import org.springframework.stereotype.Component;
//
//import javax.annotation.Resource;
//
///**
// * @description: pulsar注入条件
// * @author LiuZihan
// * @date 2021/8/16 17:22
// * @version 1.0
// */
//public class OnPulsarCondition implements Condition {
//
//    @Resource
//    PulsarProperties pulsarProperties;
//
//    @Override
//    public boolean matches(ConditionContext conditionContext, AnnotatedTypeMetadata annotatedTypeMetadata) {
//        String enable = pulsarProperties.getEnable();
//        return Boolean.TRUE.toString().equals(enable);
//    }
//}
